package org.halk.canal_demo;

import org.halk.canal_demo.service.TestService;
import org.halk.canal_demo.service.impl.TestServiceImpl;
import org.halk.canal_demo.service.impl.TestServiceImpl2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@SpringBootApplication
@RestController
public class CanalDemoApplication {

	@Autowired
	private TestService testServiceImpl;

	public static void main(String[] args) {
		SpringApplication.run(CanalDemoApplication.class, args);
	}

	@GetMapping("/get")
	public String testRun() {
		System.out.println("---");
		return testServiceImpl.getStr("nihao");
	}

}
